#include "mythread.h"

#include <QDebug>

MyThread::MyThread()
{

}

MyThread::~MyThread()
{
}

//模拟耗时任务
void MyThread::run()
{
    qDebug() << "MyThread id = " << currentThreadId();

    for(int idx = 1; idx < 10; ++idx)
    {
        qDebug() << "idx = " << idx;
        msleep(1000);
    }
}
